﻿HmJS.$Import('ui.calendar.DatePicker');
//HmJS.$Import('core.domready');

HmJS.register('demo.module.ui.calendar.datepicker.events', function ($ns) {
	var that = {};

	that.todo = function () {
		var debug = $('debug').set('tween', { property: 'background-color' }).setStyle('background-color', '#fff');

		var Picker = $ns.ui.Picker;

		new Picker.Date('testDate', {
			timePicker: true,
			onOpen: function () {
				debug.tween('#00ffff');
			},
			onClose: function () {
				debug.tween('#AAA');
			},
			onSelect: function (date, input) {
				input.highlight();
				debug.set('text', date.format('%c'));
			}
		});
	};

	return that;
});
